<template>
    <view class="zwcard">
        <block v-for="(col,colindex) in columns" :key='colindex'>
            <block v-for="(itemV, itemK) in item" :key='itemK'>
                <div class="zwcarditem" v-if="col.dataIndex == itemK">
                    <div class="label">{{col.title}}:</div>
                    <div class="content">{{itemV}}</div>
                </div>
            </block>
        </block>
    </view>
</template>

<script>
    export default {
        props:{
            columns: { type: Array, default: () => [], },
            item: { type: Object, default: () => {}, },
        },
        name: "zwcard"
    };
</script>

<style scoped>
</style>